package com.zl.redisscheduler.core;

/**
 *
 *
 * @date 2021/4/7 17:46
 * @author Lizhong
 */

public class ScheduleMetadata {
    private String taskId;
    private long duration;
    private Runnable runnable;

    public ScheduleMetadata(String taskId, long duration, Runnable runnable) {
        this.taskId = taskId;
        this.duration = duration;
        this.runnable = runnable;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public Runnable getRunnable() {
        return runnable;
    }

    public void setRunnable(Runnable runnable) {
        this.runnable = runnable;
    }
}

